package cn.jzq.kotoba.modules.designpattern.factory;

/**
 * @author jzq
 * @date 2018/12/27 16:27
 */
public abstract class PizzaStore2 {

    public  Pizza orderPizza(String type) {
        Pizza pizza = createPizza(type);
        pizza.prepare();
        pizza.bake();
        pizza.box();
        return pizza;
    }

    abstract Pizza createPizza(String type);
}
